﻿using System;
using Mono.Rift.Core.Graphics;
using coregraphics = Mono.Rift.Core.Graphics;
using OpenTK.Graphics.OpenGL;

namespace Mono.Rift.Core.OpenTK
{
	public class ShaderSet : coregraphics.ShaderSet
	{
		public int Prog { get; private set; }

		public ShaderSet ()
		{
			Prog = GL.CreateProgram ();
		}

		~ShaderSet()
		{
			GL.DeleteProgram (Prog);
		}

		public override void set (PrimitiveTypes prim)
		{
			GL.UseProgram (Prog);
		}
	}
}

